#define  _CRT_SECURE_NO_WARNINGS 1

#include"SList.h"



void test() {
	SLTNode* plist = NULL;

	//SLTPushFront(&plist, 1);
	//SLTPushFront(&plist, 1);
	//SLTPushFront(&plist, 2);
	//SLTPushFront(&plist, 3);
	//SLTPushFront(&plist, 4);

	SLTPushFront(&plist, 1);
	SLTPushFront(&plist, 1);
	SLTPushFront(&plist, 2);
	SLTPushFront(&plist, 3);
	SLTPushFront(&plist, 4);

	SLTInsert(&plist, plist->next->next, 100);
	SLTInsert(&plist, plist->next, 333);


	SLTErase(&plist, plist->next);
	SLTErase(&plist, plist->next);
	SLTErase(&plist, plist->next);

	SListEraseAfter(plist);

	//SLTPopBack(&plist)
	//SLTPopBack(&plist);
	//SLTPopBack(&plist);
	//SLTPopBack(&plist);

	//SLTPopFront(&plist);
	//SLTPopFront(&plist);



	SLTPrint(plist);
}

int main() {

	test();
	return 0;
}

